import Vue from 'vue'

Vue.mixin({
  methods: {
    echartsToRem(val, initWidth = 1920) {
      const nowClientWidth = document.documentElement.clientWidth
      return val * (nowClientWidth / initWidth)
    }
  }
})
